﻿<?php 
//include_once('init.php');
      $data=selectone($GLOBALS['c'],$_GET['id']);
      

 // print_r($data);die;
if(!empty($_POST)){


      $_rows=selectone($GLOBALS['c'],$_POST,$_GET['id']);
      
    if ($_rows>0) {
        echo '<script>alert("编辑成功"); location.href="index.php?c=admin&a=list&admin=1";</script>';die;
        # code...
    }else{
        echo'<script>alert("编辑失败");history.go(-1);</script>';die;
    }

        
}
    // print_r($data);die;
 
// $sql="insert into `news`(`title`,`type`,`content`,`author`,`send_user`)values('$title','$type',' $content','$author','$send_user')";
 include VIEW_PATH.$admin.'layout.html';
 //先做添加以作基础//

//编写插入数据的sql语句
